/*************************
查看
* */
<template>
  <div>
    <el-dialog
      title="查看"
      :close-on-click-modal="true"
      :visible.sync="visible"
      top="8vh"
      @close="closeDialog()"
    >
      <el-form
        :model="dataForm"
        ref="dataForm"
        @keyup.enter.native="dataFormSubmit()"
        label-position="left"
      >
        <div class="boxsty">
          <el-row>
            <el-col>
              <el-form-item label="分类:" prop="fl">
                <span>{{dataForm.fl}}</span>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col>
              <el-form-item label="依据" prop="yj">
                <span>{{dataForm.yj}}</span>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row>
            <el-col>
              <el-form-item label="指标规则:" prop="zbgz">
                <span>{{dataForm.zbgz==0?'正指标':'负指标'}}</span>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col>
              <el-form-item label="加扣分标准" prop="jkfbz">
                <span>{{dataForm.jkfbz}}</span>
              </el-form-item>
            </el-col>
          </el-row>

        </div>
      </el-form>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" plain @click="closeDialog()">返回</el-button>
        <!-- <el-button type="primary" plain @click="closeDialog()">确定</el-button> -->
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {

      visible: false,
      dataForm: {}
    };
  },
  watch: {},
  created() {},
  methods: {
    //初始化
    csh() {
      this.dataForm = {};
    },
    init(obj) {
      if (obj) {
        this.dataForm = obj.data;
      }

      this.visible = true;
    },

    closeDialog() {
      this.visible = false;
      this.$emit("closeDialog");
    }
  }
};
</script>
<style scoped>
.el-divider {
  background-color: #fff;
}
.tree-box {
  height: 500px;
  overflow: auto;
}
</style>
